/**
Application Layout
by chilei 2012/11/27
*/
Ext.namespace("myNameSpace");
//create app
myNameSpace.app=function(){
	//
	//private parameter
	var btn1;
	var privVar1 = 11;
	//private function
	var btn1Handler = function(button,event){
		alert('no');			
	};
	//public space
	return{
		//public paramter
		btn1Text:'Button',
				
		init:function(){
			try{
				alert(this.btn1Text);
				btn1 = new Ext.Button({
					renderTo:'btn1-ct',
					text:this.btn1Text,
					handler:btn1Handler,
					scope:this
				});
				//btn1.setText(btn1Text);
				
			}
			catch(e){
				alert("exception"+e.message);
			}
		}
	};
}();
/*
Ext.apply(myNameSpace.app,{
	btn1Text:'Taste',
	init:function(){
		try{
			btn1 = new Ext.Button('btn1-ct',{
				text:this.btn1Text,
				scope:this
				});
		}catch(e){
			alert("exception:"+e.message);
		}
	}
	
});
*/

